JSObj

Stores a JS value with a reference counter so that JS's GC doesn't collect it whilst it's stored in D. Template is a struct type that contains fields and function declarations that this struct will attempt to copy in signature but with JS type conversions. Do note that accessing members is done lazily.

Constructors

this
this(napi_env env)
Undocumented in source.
this
this(napi_env env, napi_value context)
Undocumented in source.
this
this(typeof(this) rhs)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

FieldTypes
alias FieldTypes = staticMap!(type, FieldNames)
Undocumented in source.
NamesForCaller
alias NamesForCaller = staticMap!(nameForCaller, FieldNames)
Undocumented in source.

Functions

constructor
auto constructor(Parameters!(FieldTypes[FunPosition]) args)
Undocumented in source. Be warned that the author may not have intended to support it.
context
auto context()
Undocumented in source. Be warned that the author may not have intended to support it.
jsLog
void jsLog()

Convenience console.log (this) function

toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

dlangNodeIsJSObj
enum dlangNodeIsJSObj;
Undocumented in source.

Variables

context
napi_value context;
Undocumented in source.
ctxRef
napi_ref ctxRef;
Undocumented in source.
env
napi_env env;
Undocumented in source.

Meta